package ar.com.agea.processor.alert.service

import ar.com.agea.domain.alerts.Alert

class AlertService {

	def findAlertsByStateAndIntervalCode(actived, intervalCode) {
		def criteria = Alert.createCriteria()
		criteria.list {
			eq("enabled", true)
			alertInterval {
				eq("code", intervalCode)
			}
		}
	}
	
}
